home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / go32 / fs / syms.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-21  |  1.4 KB  |  39 lines

  1. /* This is file SYMS.H */
  2. /*
  3. ** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. #ifndef _SYMS_H_
  16. #define _SYMS_H_
  17.  
  18. void syms_init (char *fname);
  19. void syms_list (int byval);
  20. word32 syms_name2val (char *name);
  21. char *syms_val2name (word32 val, word32 *delta);
  22. char *syms_val2line (word32 val, int *lineret, int exact);
  23. char *get_module (int count);
  24. word32 get_linenum (int filenum, int linenum);
  25. char *syms_makewild (word32 sym_num); 
  26. void syms_get (word32 sym_num, word32 *address, char *type_c);
  27. void syms_listwild (char *pattern, void (*handler)(word32));
  28.  
  29. extern int undefined_symbol;
  30.  
  31. #define N_INDR  0x0a
  32. #define    N_SETA    0x14        /* Absolute set element symbol */
  33. #define    N_SETT    0x16        /* Text set element symbol */
  34. #define    N_SETD    0x18        /* Data set element symbol */
  35. #define    N_SETB    0x1A        /* Bss set element symbol */
  36. #define N_SETV    0x1C        /* Pointer to set vector in data area.  */
  37.  
  38. #endif
  39.